package com.prjsystem.entity;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;

public class MenuBean extends ActionSupport{
	/**
	 * 
	 */
	private static final long serialVersionUID = 6078833266310076894L;
	private String name;//按钮wr
	private String id;
	private String url;//wr路径
	private List<String> hintList;//wrlook,wrupdate
	private String dispName;//拼接字符串
	private List<MenuBean> menuList;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public List<String> getHintList() {
		return hintList;
	}
	public void setHintList(List<String> hintList) {
		this.hintList = hintList;
	}
	public List<MenuBean> getMenuList() {
		return menuList;
	}
	public void setMenuList(List<MenuBean> menuList) {
		this.menuList = menuList;
	}
	public String getDispName() {
		StringBuffer dispNameBuf = new StringBuffer();
		dispNameBuf.append(name);
		if (hintList != null && hintList.size() > 0) {
			dispNameBuf.append("(");
			for (String hint : hintList) {
				dispNameBuf.append(hint);
			}
			dispNameBuf.append(")");
		}
		this.dispName = dispNameBuf.toString();
		
		return dispName;
	}
	public void setDispName(String dispName) {
		this.dispName = dispName;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getId() {
		return id;
	}
}
